package concurrent;

/**
 * Created by chenxin on 2018/2/12.
 */
public class RunnableTest {
    public static void main(String[] args) throws Exception{
        System.out.println(Thread.currentThread().getName());
        Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println("runnable " + Thread.currentThread().getName());
                throw new RuntimeException();
            }
        };
        r.run();
        Thread.sleep(1000);
    }
}
